<template>
  <div class="card-box">
    <div class="head-name">
      <div class="title"><span>{{ name }}</span></div>
      <div class="operate"><slot name="operate"></slot></div>
    </div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>
<script>
  export default {
    props: {
      name: {
        type: String,
        default: '默认标题',
      },
    },
    data() {
      return {}
    },
    created() {},
    computed: {},
    methods: {},
  }
</script>
<style scoped lang="scss">
  .card-box {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0 12px 11px;
    background: rgba(13, 61, 119, 0.938);
    border: 1px solid #6097e2;
    border-radius: 4px;

    .head-name {
      margin-bottom: 12px;
      border-bottom: 1px solid rgba(163, 203, 248, 0.5);
      display: flex;
      justify-content: space-between;
      align-items: center;

      .title span {
        font-family: AlibabaPuHuiTi_2_115_Black;
        font-size: 22px;
        line-height: 43px;
        color: #dbedff;
        text-align: center;
        text-shadow: 0 2px 0 rgb(0 37 84 / 68.5%);
        letter-spacing: 0.4px;
        white-space: nowrap;
        user-select: none;
        transform: translate(-50%, -50%);
        position: relative;
        padding-left: 10px;
        &::before{
          content: '';
          top: 50%;
          left: 0;
          width: 3px;
          height: 20px;
          position: absolute;
          background-color: #6097e2;
          transform: translateY(-50%);
        }
      }
      .operate{
        
      }
    }
    .content{
      width: 100%;
      height: calc(100% - 56px);
    }
  }
</style>
